<?php
class RolesSeparation{
    public function __construct()
    {

    }

    public static function useScriptSeparatFileRoles($filepath)
    {
        if(is_file($filepath)){
            $dir = pathinfo($filepath)['dirname'];
            $file = pathinfo($filepath)['filename'];
            $script_cmd = "cd /opt/RSSM/RSSS/java && bash ./speeker_split.sh";
            exec("$script_cmd $dir $file > /dev/null &");
        }
    }
}